** "The Policy Substance of Legislative Ideology" **
** Bill-level replication code 

** Open Bills Data
use "C:\Users\Adam\Dropbox\Policy Tools\Paper Text\Replication Files\Bills Data.dta"

** Figure 1
graph bar study regulation grant taxcut outreach deregulation welfare mandate spending compensation mandatereversal taxincrease loan spendingcut leasing welfarecut propertyacquisition inforestriction endstudy grantcut compensationcut loancut if taxcut!=. & welfare!=. & regulation!=., scheme(plotplain) showyvars legend(off) nolabel


* Figure 3 Models
foreach var of varlist taxcut-inforestriction {
logit `var' dwnom1 committeeleader terms_served majority i.majortopic i.congress, cluster(icpsrid)
eststo `var'
} 

* Figure 3
* Odds Ratio decreasing tools
coefplot compensationcut taxcut leasing welfarecut spendingcut grantcut loancut deregulation mandatereversal endstudy inforestriction, ///
keep(dwnom1) name(dec) eform scheme(plotplain) xlab(-10(1)10) xline(1) xtitle("Odds Ratio Change")

* Odds Ratio increasing tools
coefplot compensation taxincrease propertyacquisition welfare spending grant loan regulation mandate study outreach, ///
keep(dwnom1) name(inc) eform scheme(plotplain) xline(1) xlab(0(.1)2) xtitle("Odds Ratio Change")

gr combine dec inc, col(1)
